package com.cxria.pattern.commandAndResponsibilityChain

def invoker = new Invoker()

while (true){
    print '#'
    def input = new BufferedReader(new InputStreamReader(System.in)).readLine()
    if(input == 'quit' || input == 'exit'){
        break
    }
    println invoker.exec(input)
}